.class Lcom/TwinBlade/PicturePassword/cu;
.super Landroid/view/ScaleGestureDetector$SimpleOnScaleGestureListener;
.source "SourceFile"


# instance fields
.field final synthetic a:Lcom/TwinBlade/PicturePassword/TouchImageView;


# direct methods
.method private constructor <init>(Lcom/TwinBlade/PicturePassword/TouchImageView;)V
    .locals 0
    .parameter

    .prologue
    .line 105
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-direct {p0}, Landroid/view/ScaleGestureDetector$SimpleOnScaleGestureListener;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/TwinBlade/PicturePassword/TouchImageView;Lcom/TwinBlade/PicturePassword/cu;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 105
    invoke-direct {p0, p1}, Lcom/TwinBlade/PicturePassword/cu;-><init>(Lcom/TwinBlade/PicturePassword/TouchImageView;)V

    return-void
.end method


# virtual methods
.method public onScale(Landroid/view/ScaleGestureDetector;)Z
    .locals 4
    .parameter

    .prologue
    .line 114
    invoke-virtual {p1}, Landroid/view/ScaleGestureDetector;->getScaleFactor()F

    move-result v0

    .line 115
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v1

    .line 116
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v3

    mul-float/2addr v3, v0

    invoke-static {v2, v3}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;F)V

    .line 117
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v2

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/TouchImageView;->b(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v3

    cmpl-float v2, v2, v3

    if-lez v2, :cond_2

    .line 118
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->b(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v2

    invoke-static {v0, v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;F)V

    .line 119
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/TouchImageView;->b(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v0

    div-float/2addr v0, v1

    .line 125
    :cond_0
    :goto_0
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    iget v1, v1, Lcom/TwinBlade/PicturePassword/TouchImageView;->d:F

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v2

    mul-float/2addr v1, v2

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    iget v2, v2, Lcom/TwinBlade/PicturePassword/TouchImageView;->b:I

    int-to-float v2, v2

    cmpg-float v1, v1, v2

    if-lez v1, :cond_1

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    iget v1, v1, Lcom/TwinBlade/PicturePassword/TouchImageView;->e:F

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v2

    mul-float/2addr v1, v2

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    iget v2, v2, Lcom/TwinBlade/PicturePassword/TouchImageView;->c:I

    int-to-float v2, v2

    cmpg-float v1, v1, v2

    if-gtz v1, :cond_3

    .line 126
    :cond_1
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/TouchImageView;->d(Lcom/TwinBlade/PicturePassword/TouchImageView;)Landroid/graphics/Matrix;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    iget v2, v2, Lcom/TwinBlade/PicturePassword/TouchImageView;->b:I

    div-int/lit8 v2, v2, 0x2

    int-to-float v2, v2

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    iget v3, v3, Lcom/TwinBlade/PicturePassword/TouchImageView;->c:I

    div-int/lit8 v3, v3, 0x2

    int-to-float v3, v3

    invoke-virtual {v1, v0, v0, v2, v3}, Landroid/graphics/Matrix;->postScale(FFFF)Z

    .line 130
    :goto_1
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a()V

    .line 131
    const/4 v0, 0x1

    return v0

    .line 120
    :cond_2
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v2

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v3}, Lcom/TwinBlade/PicturePassword/TouchImageView;->c(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v3

    cmpg-float v2, v2, v3

    if-gez v2, :cond_0

    .line 121
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->c(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v2

    invoke-static {v0, v2}, Lcom/TwinBlade/PicturePassword/TouchImageView;->a(Lcom/TwinBlade/PicturePassword/TouchImageView;F)V

    .line 122
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/TouchImageView;->c(Lcom/TwinBlade/PicturePassword/TouchImageView;)F

    move-result v0

    div-float/2addr v0, v1

    goto :goto_0

    .line 128
    :cond_3
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    invoke-static {v1}, Lcom/TwinBlade/PicturePassword/TouchImageView;->d(Lcom/TwinBlade/PicturePassword/TouchImageView;)Landroid/graphics/Matrix;

    move-result-object v1

    invoke-virtual {p1}, Landroid/view/ScaleGestureDetector;->getFocusX()F

    move-result v2

    invoke-virtual {p1}, Landroid/view/ScaleGestureDetector;->getFocusY()F

    move-result v3

    invoke-virtual {v1, v0, v0, v2, v3}, Landroid/graphics/Matrix;->postScale(FFFF)Z

    goto :goto_1
.end method

.method public onScaleBegin(Landroid/view/ScaleGestureDetector;)Z
    .locals 2
    .parameter

    .prologue
    .line 108
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/cu;->a:Lcom/TwinBlade/PicturePassword/TouchImageView;

    const/4 v1, 0x2

    iput v1, v0, Lcom/TwinBlade/PicturePassword/TouchImageView;->a:I

    .line 109
    const/4 v0, 0x1

    return v0
.end method
